//
//  sendView.m
//  ForengnMenu
//
//  Created by jiangtao on 16/1/22.
//  Copyright © 2016年 余旺. All rights reserved.
//

#import "sendView.h"

@implementation sendView

- (void)awakeFromNib {

    self.sendtextField.layer.cornerRadius =5.0f;
    self.sendtextField.layer.masksToBounds = YES;

    [self.sendButton.layer setBorderColor:[[UIColor grayColor] CGColor]];
    
}


- (IBAction)sendActionButton:(id)sender {
    
    
    //执行委托方法
    [self.deleget sendMessage:self.sendtextField.text];
    
    self.sendtextField.text = nil;
    
    
    self.sendtextField.layer.cornerRadius  = 5.0f;
    
    //关闭触摸事件
//    self.sendButton.enabled = NO;


    
    
}
- (IBAction)sendTextFlid:(UITextField *)sender {
    
    
    if (self.sendtextField.text.length == 0) {
//        self.sendButton.enabled = NO;
    }else{
        self.sendtextField.enabled = YES;
    }

}

@end
